package com.fancon.android.gardenjokesx.utils;

import android.content.Context;
import android.util.DisplayMetrics;

public class LayoutParamsUtils {
	public int dp;
	public int width;
	Context mContext;

	public LayoutParamsUtils(Context context) {
		mContext = context;
		DisplayMetrics metrics = mContext.getResources().getDisplayMetrics();
		int dpi = metrics.densityDpi;
		width = metrics.widthPixels;
		dp = dpi / 160;
		//width = width - 20 * dp;
	}

}